package com.thinkingstar.iads.cs.sys.entity;

import org.nutz.dao.entity.annotation.*;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author steelwoo.cn
 * @time   2012-9-13 下午1:34:26
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table("dc_sys_role_resource")
@TableIndexes({@Index(name = "INDEX_ROLERESOURCE", fields = {"roleid","resourceid"}, unique = true)})
public class SysRoleResource {
	@Column
	private int roleid;
	@Column
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String resourceid;
	@Column
    @ColDefine(type = ColType.VARCHAR, width = 1000)
    private String button;

	@Column
	@Readonly
	private String roleName;

	@Column
	@Readonly
	private String resName;
}


